<%@ page import="com.timeDeal.bean.UserBean" %>
<%@ page import="com.timeDeal.bean.GuanliyuanBean" %>
<%--
  Created by IntelliJ IDEA.
  User: 子妮
  Date: 2016/8/31
  Time: 17:31
  To change this template use File | Settings | File Templates.
--%>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String ctxpath=request.getContextPath();
    String id = request.getParameter("id") ;
    id= id.isEmpty()?"0":id ;
 //   String flag = request.getParameter("flag") ;
    //flag = flag.isEmpty()?"0":flag ;
    UserBean loginuser = (UserBean)request.getSession().getAttribute("USER");
    GuanliyuanBean loginadmin =(GuanliyuanBean)request.getSession().getAttribute("ADMIN");
%>
<html>
<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width,initial-scale=1">
        <title>欢迎使用时间交易系统</title>
        <link href="<%=ctxpath%>/static/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet"  />
        <link href="<%=ctxpath%>/static/top.css" rel="stylesheet"  />
        <script src="<%=ctxpath%>/static/bootstrap-3.3.5-dist/js/jquery.min.js"></script>
        <script src="<%=ctxpath%>/inc/user.js"></script>
        <script language="javascript" type="text/javascript" src="<%=ctxpath%>/static/My97DatePicker/WdatePicker.js"></script>
    </head>
    <body style="background-image: url(../img/111.jpg);background-size:100%;clear: both;margin-left: 200px;margin-right: 200px">
    <div style="text-align: right;height:8%">
        <canvas id = "canvas" width="110" height="100" style="float: left"></canvas>
        <script src="<%=ctxpath%>/static/clock.js"></script>
        <%if(loginuser!=null){ %>
        <span style="float: left"><h1><strong>欢迎进入信息展示大厅</strong></h1></span>
        <%  } else {  %>
        <span style="float: left"><h1><strong>欢迎进入个人信息展示大厅</strong></h1></span>
        <% } %>
        <h4 style="float:left;margin-left: 30px;margin-top: 0px">当前时间</h4>
        <br>
        <div id="time" class="time"> </div>
        <%if(loginadmin!=null){ %>
            <h2><%=loginadmin.getZhanghao()%></h2>
        <%  } else if(loginuser!=null){ %>
        <a class="btn btn-info" href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=loginuser.getYonghuid()%>"><%=loginuser.getYonghuming()%></a>
        <a   class="btn btn-info" href="<%=ctxpath%>/layout?flag=1">退出</a>
        <%}%>
    </div>
    <br/>
    <br/>
    <br/>

    <nav class="navbar-inverse">
        <div class="navbar-collapse collapse" role="navigation">
            <ul class="nav navbar-nav">
                <li><a href="<%=ctxpath%>/user/bierenxinxi.jsp?id=<%=id%>">个人信息</a></li>
                <li><a href="<%=ctxpath%>/user/pingtaixinxi.jsp?id=<%=id%>">平台信息</a></li>
                <%if(loginadmin!=null||loginuser==null){}else if(Integer.valueOf(id)==loginuser.getYonghuid()){%>
                <li><a href="<%=ctxpath%>/user/wofabude.jsp?id=<%=loginuser.getYonghuid()%>&flsg=需求发布">我的需求发布</a></li>
                <li><a href="<%=ctxpath%>/user/wofabudegg.jsp?flag=1">我的时间出售</a></li>
                <%}%>
                <li><a href="<%=ctxpath%>/user/zhujiemiangg.jsp">返回主界面</a></li>
            </ul>
        </div>
    </nav>
    <div class="container" style="clear:both;margin-right: 200px">